Imports System.Collections.Generic
Imports DataLayer
Imports EntityLayer

Public Class ProveedorBL

    Public Shared Function BuscarProveedorxProducto(ByVal intCodProducto As Integer) As Proveedor
        Return ProveedorDA.BuscarProveedorxProducto(intCodProducto)
    End Function

    Public Shared Function ObtenerNuevoCodigo() As String
        Return ProveedorDA.ObtenerNuevoCodigo
    End Function

    Public Shared Function Agregar(ByVal ProveedorEN As Proveedor) As Boolean
        Return ProveedorDA.Agregar(ProveedorEN)
    End Function

    Public Shared Function Actualizar(ByVal ProveedorEN As Proveedor) As Boolean
        Return ProveedorDA.Actualizar(ProveedorEN)
    End Function

    Public Shared Function ListarTodo() As DataSet
        Return ProveedorDA.ListarTodo
    End Function

    Public Shared Function ListarxCodigo(ByVal strCodigo As String) As DataSet
        Return ProveedorDA.ListarxCodigo(strCodigo)
    End Function
End Class
